from django.conf.urls import url
from django.contrib import admin
from . import views

urlpatterns = [
    #提供订单界面和订单信息
    url(r'^order/$', views.OrderView.as_view(),name='order'),

    #ajax访问提交订单信息到订单表中
    url(r'^orders/commit/$', views.CommitOrderView.as_view()),

    #展示订单提交成功页面
    url(r'^orders/success/$', views.CommitSuccessView.as_view()),

    #前端发起支付宝支付请求,返回一个支付宝登录url和所需参数
    url(r'^payment/(?P<order_id>\d*)/$', views.PaymentView.as_view()),

    #支付成功跳转显示流水号
    url(r'^payment/status/$', views.PaymentStatusView.as_view()),

    #我的订单
    url(r'^mypayment/$', views.MyOrdersView.as_view()),

    #评价页面
    url(r'^comment/(?P<order_id>\w\d{0,100})/$', views.CommentView.as_view(),name='comment'),

    #处理评价页面提交的信息
    url(r'^dealcomment/$', views.DealCommentPageView.as_view()),


]
